package com.bit.mybatis.demo.mapper;

import com.bit.mybatis.demo.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserInfoMapperXML {

    List<UserInfo> selectList();

    List<UserInfo> selectList2();

    List<UserInfo> selectList3();

    Integer insertUser(UserInfo userInfo);


    Integer insertUser2(@Param("userInfo") UserInfo userInfo);

    Integer deleteUserById(Integer id);

    Integer updateUser(UserInfo userInfo);

    Integer insertUserByCondition(UserInfo userInfo);

    List<UserInfo> selectByCondition(UserInfo userInfo);

    Integer updateUserByCondition(UserInfo userInfo);

    Integer batchDelete(List<Integer> ids);



}
